package com.dm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dm.entity.Room;
import com.dm.mapper.RoomMapper;
import com.dm.service.IRoomService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dancun
 * @since 2021-05-02
 */
@Service
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements IRoomService {
    @Autowired
    RoomMapper roomMapper;

    @Override
    public List<Room> listRoom(QueryWrapper wrapper) {
        return roomMapper.listRoom(wrapper);
    }

    @Override
    public Room getOneRoom(Integer id) {
        return roomMapper.getOneRoom(id);
    }
}
